I found this on StackOverflow.
It seems that you should turn off running with Rosetta for Xcode.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: